package com.woniu51.k15demo.mapper;

import com.woniu51.k15demo.entity.Role;
import com.woniu51.k15demo.vo.RoleVo;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    List<Role> selectRoleByNameLike(String name);


    RoleVo getRoleAndPermissionsById(Long id);

}